<?php
namespace Modules\Asset\Entities;

use Illuminate\Database\Eloquent\Builder;
use Modules\Asset\Entities\AssetRecord;
use ThrowException;

class RedpackRecord extends AssetRecord
{
    protected $guarded = [];
    protected $table = 'asset_records';
    static public $resourceName = '';

    protected static function boot()
    {
        parent::boot();

        static::addGlobalScope('redpackRecord', function(Builder $builder) {
            $builder->assetType('redpack');
        });
    }
}
